﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" Inherits="Nivdal.AtukTranslator" Codebehind="AtukTranslator.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />

    <title>Atuk Translator - Nivdal.com!</title>
    <link rel="shortcut icon" href="~/Images/favicon.ico" />
    <link rel="icon" type="image/gif" href="~/Images/favicon.ico" />
    <link type="text/css" rel="stylesheet" href="stylesheetNew.css" />
    <link href="NoamStyles/Global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function TranslateToAtukit()
        {
            var Hebrew = document.getElementById("HebrewTextBox").value;
            
            var Hebrew1 = Hebrew.replace(/"'"/g, "w").replace(/ק/g, "e").replace(/ר/g, "r").replace(/א/g, "t").replace(/ט/g, "y");
            var Hebrew2 = Hebrew1.replace(/ו/g, "u").replace(/ן/g, "i").replace(/ם/g, "o").replace(/פ/g, "p").replace(/ש/g, "a");
            var Hebrew3 = Hebrew2.replace(/ד/g,"s").replace(/ג/g,"d").replace(/כ/g,"f").replace(/ע/g,"g").replace(/י/g,"h").replace(/ח/g,"j");
            var Hebrew4 = Hebrew3.replace(/ל/g,"k").replace(/ך/g,"l").replace(/ף/g,";").replace(/,/g,"'").replace(/ז/g,"z").replace(/ס/g,"x");
            var Hebrew5 = Hebrew4.replace(/ב/g,"c").replace(/ה/g,"v").replace(/נ/g,"b").replace(/מ/g,"n").replace(/צ/g,"m").replace(/ת/g,",");
            var Hebrew6 = Hebrew5.replace(/ץ/g,".").replace(/'.'/g,"q");
            
            document.getElementById("AtukitTextBox").value = Hebrew6;
        }
        function TranslateToHebrew()
        {
            var Hebrew = document.getElementById("AtukitTextBox").value;
            
            var Hebrew1 = Hebrew.replace(/q/g, "/").replace(/w/g, "'").replace(/e/g, "ק").replace(/r/g, "ר").replace(/t/g, "א").replace(/y/g, "ט");
            var Hebrew2 = Hebrew1.replace(/u/g, "ו").replace(/i/g, "ן").replace(/o/g, "ם").replace(/p/g, "פ").replace(/a/g, "ש");
            var Hebrew3 = Hebrew2.replace(/s/g,"ד").replace(/d/g,"ג").replace(/f/g,"כ").replace(/g/g,"ע").replace(/h/g,"י").replace(/j/g,"ח");
            var Hebrew4 = Hebrew3.replace(/k/g,"ל").replace(/l/g,"ך").replace(/;/g,"ף").replace(/"'"/g,",").replace(/z/g,"ז").replace(/x/g,"ס");
            var Hebrew5 = Hebrew4.replace(/c/g,"ב").replace(/v/g,"ה").replace(/b/g,"נ").replace(/n/g,"מ").replace(/m/g,"צ").replace(/,/g,"ת");
            var Hebrew6 = Hebrew5.replace(/'.'/g,"ץ");
            document.getElementById("HebrewTextBox").value = Hebrew6;
        }
        
        
    </script>
</head>
<body onload="rsw_autoFocusAfterAJAX=false" style="margin:0 0 0 0; background-color:#474747;">
    <form id="form2" runat="server">
        <div>
        <div>
        <div id="div_top_grey_container_left">
        <div id="div_top_grey_container_left_top"></div>
        <div id="div_top_grey_container_left_bottom"></div>
        </div>
        <div id="div_top_grey_container_right"></div>
        <div id="div_top_grey_data_container">
            <div id="div_top_grey_data_right">
            </div>
            <div id="div_top_grey_connector"></div>
        
        
        </div>
        </div>
        
        <div class="bg_layer2_white">
        <div class="auto_margin site_width">
            <asp:HyperLink ID="MainNewsPageHL" ImageUrl="~/Images/logobeta3.png" NavigateUrl="~/Default.aspx" runat="server" CssClass="float_left sitelogo"></asp:HyperLink>
            <div class="float_right">
            <asp:Panel ID="AddsPanel" runat="server">
                <script type="text/javascript"><!--
                    google_ad_client = "ca-pub-1409945245587782";
                    google_ad_slot = "7476602956";
                    google_ad_width = 468;
                    google_ad_height = 60;
                //-->
                </script>
                <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
            </asp:Panel>
                
            </div>
        </div>
        <div class="clearBoth"></div>
        </div>
        <div class="bg_layer2_red"></div>
        <div class="bg_layer2_pic">
            <div class="auto_margin site_width">
            <div id="mainplaceholder" class="floater main_top_margin">
            <div id="main_data_placeholder">
            <div class="padding5">
            <div class="basic_element" style="height:550px;">
            <div class="padding5">
                <span id="Label2"  style="font-family:Arial; font-size:12px; font-weight:bold;">הטקסט באטוקית:</span>
                <br />
                <textarea name="AtukitTextBox" rows="10" cols="20" id="AtukitTextBox" onkeyup="javascript:TranslateToHebrew()" style="width:600px;"></textarea>
                <br /><br />
                <span id="Label1" style="font-family:Arial; font-size:12px; font-weight:bold;">הטקסט בעברית:</span>
                <br />
                <textarea name="HebrewTextBox" rows="10" cols="20" id="HebrewTextBox" onkeyup="javascript:TranslateToAtukit()" style="width:600px; direction:rtl;"></textarea>
     
            <div>
           
            </div>


                    
            </div>
            </div>
            </div>
            </div>
            
            </div>
            </div>
        <div class="clearBoth"></div>
        </div>
        <div class="footer">
        <div class="auto_margin site_width">
                
            <asp:HyperLink ID="HyperLink1" runat="server"  Text="<%$ Resources:Resource, Global_PrivacyPolicy %>" NavigateUrl="~/Privacy.aspx" CssClass="footer_link" Target="_blank"></asp:HyperLink>
            &nbsp;&nbsp;
            <asp:HyperLink ID="TermsHyperLink" runat="server" CssClass="footer_link" Text="<%$ Resources:Resource, Global_TermOfUse %>" NavigateUrl="~/Terms.aspx" Target="_blank"></asp:HyperLink>
            &nbsp;&nbsp;
            <asp:HyperLink ID="HelpHyperLink" runat="server" CssClass="footer_link"  Text="<%$ Resources:Resource, Global_Help %>" NavigateUrl="~/GameRules.aspx"></asp:HyperLink>
            &nbsp;&nbsp;
            <asp:HyperLink ID="ContactHyperlink" runat="server" CssClass="footer_link" Text="<%$ Resources:Resource, Global_Contact %>"  NavigateUrl="Contact.aspx"></asp:HyperLink>
            &nbsp;&nbsp;
            <asp:HyperLink ID="AdvertiseHyperlink" runat="server" CssClass="footer_link" Text="<%$ Resources:Resource, BigMasterPage_AdvertiseHyperlink %>" 

            NavigateUrl="~/Sponsors/Default.aspx"></asp:HyperLink>
            <br /><br />
            <asp:Label ID="copyrightLabel" runat="server" Text="<%$ Resources:Resource, BigMasterPage_copyrightLabel%>" CssClass="footer_link"></asp:Label>
                
            <div style="display: none;"><asp:Button ID="WorkAroundLink" runat="server" OnClientClick="return false;" /></div>                   
        </div>
        </div>


        
        
     </div>
    </form>
</body>
</html>